import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.tsx';
import './style/index.css';
import {BrowserRouter} from 'react-router';
import {ConfigProvider} from 'antd';

ReactDOM.createRoot(document.getElementById('root')!).render(
    <React.StrictMode>
        <ConfigProvider
            theme={{
                components: {
                    Layout: {
                        headerColor: '#fff',
                        headerBg: '#2E7F8B',
                        siderBg: '#2E7F8B',
                    },
                    Menu: {
                        itemBg: '#2E7F8B',
                        itemColor: '#fff',
                    },
                },
            }}>
            <BrowserRouter>
                <App />
            </BrowserRouter>
        </ConfigProvider>
    </React.StrictMode>,
);
